<script setup>

import DialoguaCom from "@/components/message_coms/DialoguaCom.vue";
import MessageCom from "@/components/message_coms/MessageCom.vue";

import {ref, provide} from "vue";

const messageRef = ref()
//与dialogue
const changeDialogue = (e)=>{
  messageRef.value.changeDialogue(e)
}
provide('changeDialogue',changeDialogue)
</script>

<template>
  <div class="appearing-container">
    <DialoguaCom class="dialogue-com"/>
    <MessageCom ref="messageRef" class="message-com"/>
  </div>
</template>

<style scoped>
  .dialogue-com{
    position: absolute;
    top: 0;
    right: 16px;
  }
  .message-com{
    position: absolute;
    left: 16px;
    top: 0;
  }
</style>